' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%          N a m e :   C O B O T _ W o o d _ L e o 2 _ 2 6 . t x t                 D a t e :     5   M a r   2 0 2 2   Q%
 
 ' Q%      A u t h o r :   L e n a r d o                                                                                   Q%
 
 ' Q%        S c o p e :   T e s t   a l l   t h e   f u n c t i o n a l i t y   o f   t h e   s m a l l   C O B O T       Q%
 
 ' Q%                      L A T E S T   V E R S I O N   W I T H   C O L O R   M A N A G E M E N T                         Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   S t a n d a r d   F e e T e c h   S T S 3 2 1 5         s C O B O T   w o o d   L e o 2           Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%        N o t e :   F i r s t   r u n                                                           2 0 / 1 2 / 2 0 2 1   Q%
 
 ' Q%                    g e n e r a l   t e s t   o f   a l l   f u n c t i o n s                     1 8 / 1 / 2 0 2 2   Q%
 
 ' Q%                    v o i c e   m u l t i p l e   l a n g u a g e                                 2 5 / 1 / 2 0 2 2   Q%
 
 ' Q%                    Q R c o d e   a n d   c o l o r   r e c o g n i t i o n                         9 / 2 / 2 0 2 2   Q%
 
 ' Q%                    v a l v l e   f o r   f a s t   d e t a c h   t a r g e t                     2 0 / 2 / 2 0 2 2   Q%
 
 ' Q%                    p r e s s u r e / v a c u m   s e n s o r                                     2 3 / 2 / 2 0 2 2   Q%
 
 ' Q%                    n e w   s e q u e n c e   t o   m a n a g e   v a c u u m   s e n s o r         1 / 3 / 2 0 2 2   Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 '   3 2   T o   D X P 1   2 5 4   2 1 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   P   ( P r o p o r t i o n a l 
 
 '   1 6   T o   D X P 1   2 5 4   2 2 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   D   ( D e r i v a t i v e ) 
 
 '     0   T o   D X P 1   2 5 4   2 3 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   I   ( I n t e g r a l ) 
 
 B e e p   " 2 5 0 0   1 0 0 ,   1 5 0 0   1 0 0 " 
 
 
 
 V a r i a b l e   N u m e r i c   D e b u g   =   0   '   1   =   D E B U G       0   =   N O R M A L 
 
 
 
 R e s t o r e V a r s 
 
 
 
 O p t i o n   S p e e d   9 
 
 ' O p t i o n   G l o b a l K e y s   E n a b l e d 
 
 L o a d   i m a g e s \ s C O B O T _ W o o d _ L e o 2 . j p g 
 
 B e e p   " 2 5 0 0   2 0 0 ,   1 5 0 0   2 0 0 ,   2 5 0 0   3 0 0 ,   0   5 0 0 ,   1 5 0 0   3 0 0 " 
 
 T T S   S e l e c t V o i c e   L a n g u a g e 
 
 T T S   S e t V o l u m e   1 0 0 
 
 T T S   S e t S p e e d   - 2 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t C o b o t C o m m a n d s     =   1 
 
 V a r i a b l e   N u m e r i c   S l o t C o b o t R e s p o n s e s   =   2 
 
 V a r i a b l e   N u m e r i c   S l o t Q R c o d e                   =   3 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   A S S I G N E M E N T                                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R             =   7 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G             =   8 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B             =   9 
 
 V a r i a b l e   N u m e r i c   S l o t _ P u m p             =   5 
 
 V a r i a b l e   N u m e r i c   S l o t _ V a c u u m         =   6 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n S c o p e   =   1 3 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  V A R I A B L E S                                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   N u m C y c l e 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 V a r i a b l e   S t r i n g     R e s u l t 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e 
 
 V a r i a b l e   N u m e r i c   S l o t _ E m e r g e n c y 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  B U T T O N S                                                                         Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 B u t t o n   1   T e x t   C o b o t G o t o H o m e 
 
 
 
 B u t t o n   2   T e x t   C o b o t G o t o C e n t e r 
 
 
 
 B u t t o n   3   T e x t   C o b o t S h o w P o i n t 
 
 
 
 B u t t o n   4   T e x t   C o b o t R e a d Q R c o d e 
 
 
 
 B u t t o n   5   T e x t   M e a s u r e 
 
 
 
 B u t t o n   6   T e x t   E d i t S e q u e n c e 
 
 B u t t o n   E d i t S e q u e n c e   T e x t   " E d i t   s e q u e n c e " 
 
 B u t t o n   E d i t S e q u e n c e   C o l o r   P a l e G r e e n 
 
 
 
 B u t t o n   7   T e x t   R u n S e q u e n c e 
 
 B u t t o n   R u n S e q u e n c e   T e x t   " R U N   S E Q U E N C E " 
 
 B u t t o n   R u n S e q u e n c e   C o l o r   A q u a 
 
 
 
 B u t t o n   8   T e x t   S e l e c t S e q u e n c e 
 
 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e l e c t   S e q u e n c e " 
 
 B u t t o n   S e l e c t S e q u e n c e   C o l o r   P o w d e r B l u e 
 
 
 
 B u t t o n   9   T e x t   S t a r t P u m p 
 
 B u t t o n   S t a r t P u m p   T e x t   " S t a r t   P u m p " 
 
 B u t t o n   S t a r t P u m p   C o l o r   L i m e 
 
 
 
 B u t t o n   1 0   T e x t   S t o p P u m p 
 
 B u t t o n   S t o p P u m p   T e x t   " S t o p   P u m p " 
 
 B u t t o n   S t o p P u m p   C o l o r   C r i m s o n 
 
 
 
 B u t t o n   1 1   T e x t   S a y Q R C o d e 
 
 B u t t o n   S a y Q R C o d e   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   1 4   T e x t   " M o t o r T e m p " 
 
 B u t t o n   M o t o r T e m p   C o l o r   S a l m o n 
 
 
 
 B u t t o n   1 5   T e x t   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 
 
 B u t t o n   1 6   T e x t   E m e r g e n c y 
 
 B u t t o n   E m e r g e n c y   T e x t   " E M E R G E N C Y " 
 
 B u t t o n   E m e r g e n c y   C o l o r   R e d 
 
 B u t t o n   E m e r g e n c y   S l o t     S l o t _ E m e r g e n c y 
 
 
 
 ' B u t t o n   1 7   T e x t   R e d O n 
 
 ' B u t t o n   R e d O n   C o l o r   R e d 
 
 ' B u t t o n   1 8   T e x t   G r e e n O n 
 
 ' B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 ' B u t t o n   1 9   T e x t   Y e l l o w O n 
 
 ' B u t t o n   Y e l l o w O n   C o l o r   Y e l l o w 
 
 ' B u t t o n   2 0   T e x t   B l u e O n 
 
 ' B u t t o n   B l u e O n   C o l o r   M e d i u m B l u e 
 
 ' B u t t o n   2 1   T e x t   W h i t e O n 
 
 ' B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 ' B u t t o n   2 2   T e x t   R g b O f f 
 
 ' B u t t o n   R g b O f f   C o l o r   B l a c k 
 
 
 
 S h o w S e q u e n c e N a m e 
 
 D i s a b l e A l l B u t t o n s 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  L O A D   A P P S                                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ R S 4 8 5 . e x e 
 
 ' L o a d   T h e r e m i n o _ M i c r o V i d e o . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M 1 _ M 2 . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M 3 _ M 4 . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M 5 . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 2 . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 3 . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 4 . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 5 . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 6 . e x e 
 
 
 
 L o a d   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 
 
 L o a d   H i d e 
 
 C o b o t D i s a b l e R e p e a t 
 
 W a i t M o t o r s R e a d y 
 
 
 
 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   2 0 0 " 
 
 S e n d C o m m a n d T o C o b o t 
 
 C o b o t C o m m a n d   =   " S e t S p e e d   2 0 0 0 " 
 
 S e n d C o m m a n d T o C o b o t 
 
 
 
 C O B O T R a i s e A f t e r H o m e 
 
 C o b o t S h o w P o i n t 
 
 
 
 ' C o b o t C o m m a n d   =   " S e l e c t L i n e   1 " 
 
 ' S e n d C o m m a n d T o C o b o t 
 
 ' C o b o t C o m m a n d   =   " E x e c u t e S e l e c t e d L i n e " 
 
 ' S e n d C o m m a n d T o C o b o t 
 
 
 
 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 
 
 Y e l l o w O n 
 
 P r i n t   T T S v o i c e s 
 
 E n a b l e A l l B u t t o n s 
 
 L o o p 
 
 S t o p 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  L O O P                                                                               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   L o o p 
 
 	 G e t R e s p o n s e F r o m C o b o t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 C h e c k M o t o r T e m p e r a t u r e 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 '   0 . 0 2   s e c .   o r   m o r e   t o   a l l o w   t i m e   f o r   k e y s   a n d   o t h e r   t a s k s 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A V E   L O A D   V A R S                                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a v e V a r s 
 
 	 S 1   =   S e q u e n c e N a m e 
 
 	 s 3   =   L a n g u a g e 
 
 	 S a v e   V a r s 
 
 	 P r i n t   C R L F   +   " S A V E D   S E Q U E N C E N A M E   =   "   +   s 1   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e s t o r e V a r s 
 
 	 L o a d   V a r s 
 
 	 S e q u e n c e N a m e   =   S 1 
 
 	 L a n g u a g e   =   s 3 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  C L O S I N G   E V E N T S                                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   C l o s e A l l 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   1 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S e t S p e e d   1 0 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 R e d O n 
 
 	 S a v e V a r s 
 
 	 C o b o t G o t o C e n t e r 
 
 	 C o b o t G o t o H o m e 
 
 	 L o a d   C l o s e A p p s 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ V i d e o C o l o r s . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   E v e n t S t o p 
 
 	 S a v e V a r s 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   1 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S e t S p e e d   1 0 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 R e d O n 
 
 	 C o b o t G o t o H o m e 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 S a y E n d O f P r o g r a m 
 
 E n d 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A Y   Q R C O D E                                                                   Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a y Q R C o d e 
 
 	 ' L o a d   C l o s e A p p s   T h e r e m i n o _ V i d e o C o l o r s . e x e 
 
 	 ' W a i t   N o t   A p p R u n n i n g ( " T h e r e m i n o _ V i d e o C o l o r s . e x e " ) 
 
 	 ' L o a d   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 	 ' W a i t   A p p R u n n i n g ( " T h e r e m i n o _ Q R d e c o d e r . e x e " ) 
 
 	 ' 
 
 	 W a i t C o b o t R e a d y 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   R u n _ m o v e _ t o _ Q R c o d e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " R u n _ m o v e _ t o _ Q R c o d e . s e q "   +   C R L F 
 
 	 ' 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 W a i t     S l o t T e x t ( S l o t Q R c o d e )   < >   " " 
 
 	 	 s 2   =   S l o t T e x t ( S l o t Q R c o d e ) 
 
 	 	 s 2   =   R e p l a c e ( s 2 ,   C R L F ,   " " ) 
 
 	 	 s 2   =   T r i m ( s 2 ) 
 
 	 	 S e l e c t   s 2 
 
 	 	 	 C a s e   " E n g l i s h   m a l e " 
 
 	 	 	 	 L a n g u a g e   =   1 
 
 	 	 	 	 T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s E n g l i s h M a l e 
 
 	 	 	 C a s e   " E n g l i s h   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   2 
 
 	 	 	 	 T T S   S e l e c t V o i c e   2 
 
 	 	 	 	 S a y N o w T h e V o i c e I s E n g l i s h F e m a l e 
 
 	 	 	 C a s e   " I t a l i a n   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   3 
 
 	 	 	 	 T T S   S e l e c t V o i c e   3 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s I t a l i a n F e m a l e 
 
 	 	 	 C a s e   " C h i n e s e   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   4 
 
 	 	 	 	 T T S   S e l e c t V o i c e   4 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s C h i n e s e F e m a l e 
 
 	 	 	 C a s e   " C o i n " 
 
 	 	 	 	 C o b o t L o a d S e q C o i n 
 
 	 	 	 C a s e   " B a l l " 
 
 	 	 	 	 C o b o t L o a d S e q B a l l 
 
 	 	 	 C a s e   " S t a r t   p u m p " 
 
 	 	 	 	 S t a r t P u m p 
 
 	 	 	 C a s e   " S t o p   p u m p " 
 
 	 	 	 	 S t o p P u m p 
 
 	 	 	 C a s e   " H o m e " 
 
 	 	 	 	 C o b o t G o t o H o m e 
 
 	 	 	 C a s e   " S h o w " 
 
 	 	 	 	 C o b o t S h o w P o i n t 
 
 	 	 	 C a s e   " R e d " 
 
 	 	 	 	 R e d O n 
 
 	 	 	 C a s e   " G r e e n " 
 
 	 	 	 	 G r e e n O n 
 
 	 	 	 C a s e   " B l u e " 
 
 	 	 	 	 B l u e O n 
 
 	 	 	 C a s e   " Y e l l o w " 
 
 	 	 	 	 Y e l l o w O n 
 
 	 	 	 C a s e   " W h i t e " 
 
 	 	 	 	 W h i t e O n 
 
 	 	 	 C a s e   " E N D " 
 
 	 	 	 	 S a y E n d O f R o b o t A c t i o n s 
 
 	 	 	 	 C o b o t G o t o H o m e 
 
 	 	 	 	 E x i t 
 
 	 	 	 C a s e E l s e 
 
 	 	 	 	 P r i n t   " I n v a l i d   Q R c o d e   "   +   s 2   +   C R L F 
 
 	 	 	 	 S a y U n k n o w Q R c o d e 
 
 	 	 	 ' S t o p 
 
 	 	 E n d S e l e c t 
 
 	 	 P r i n t   " Q R c o d e = "   +   s 2   +   C R L F 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 	 W a i t   S l o t T e x t ( S l o t Q R c o d e )   < >   s 2 
 
 	 N e x t 
 
 R e t u r n 
 
 ' R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E   /   D I S A B L E   P U M P                                             Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S t a r t P u m p 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   1 0 0 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ P u m p )   =   1 0 0 0 
 
 	 B u t t o n   S t a r t P u m p   D i s a b l e d 
 
 	 B u t t o n   S t o p P u m p   E n a b l e d 
 
 	 W a i t   S e c o n d s   0 . 8 
 
 	 I f   S l o t ( S l o t _ V a c u u m )   >   5 3 
 
 	 	 B e e p   " 5 0 0 ,   3 0 0 ,   0 ,   3 0 0 " 
 
 	 	 S a y V a c u u m P r o b l e m 
 
 	 	 R e d O n 
 
 	 	 S t o p P u m p 
 
 	 	 P r i n t   " V a c u u m   P r o b l e m "   +   C R L F 
 
 	 	 C o b o t S h o w P o i n t 
 
 	 	 P r i n t   " E x e c u t i o n   s t o p p e d "   +   C R L F 
 
 	 	 R e d B l i n k 
 
 	 	 E n d 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p P u m p 
 
 	 S l o t ( S l o t _ P u m p )   =   0 
 
 	 B u t t o n   S t o p P u m p   D i s a b l e d 
 
 	 B u t t o n   S t a r t P u m p   E n a b l e d 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  C O B O T   C O M M A N D S                                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   S t r i n g   C o b o t C o m m a n d 
 
 L a b e l   S e n d C o m m a n d T o C o b o t 
 
 	 S l o t T e x t   S l o t C o b o t C o m m a n d s   =   " " 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 S l o t T e x t   S l o t C o b o t C o m m a n d s   =   C o b o t C o m m a n d 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 W a i t C o b o t R e a d y 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   C o b o t R e s p o n s e 
 
 L a b e l   G e t R e s p o n s e F r o m C o b o t 
 
 	 C o b o t R e s p o n s e   =   S l o t T e x t ( S l o t C o b o t R e s p o n s e s ) 
 
 	 ' P r i n t   C o b o t R e s p o n s e   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 W a i t   S l o t T e x t ( S l o t C o b o t R e s p o n s e s )   =   " R e a d y " 
 
 	 
 
 	 F o r   v 1   =   0   T o   I n f i n i t y 
 
 	 	 I f   S l o t T e x t ( S l o t C o b o t R e s p o n s e s )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t S t a r t E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t S t o p E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t D i s a b l e R e p e a t 
 
 	 C o b o t C o m m a n d   =   " D i s a b l e R e p e a t " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t G o t o H o m e 
 
 	 C o b o t C o m m a n d   =   " G o t o H o m e " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t G o t o C e n t e r 
 
 	 C o b o t C o m m a n d   =   " G o t o C e n t e r " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C O B O T R a i s e A f t e r H o m e 
 
 	 W a i t C o b o t R e a d y 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ R a i s e A f t e r H o m e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t S t a r t E x e c u t i o n 
 
 	 P r i n t   " C O B _ R a i s e A f t e r H o m e . s e q "   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e a d Q R C o d e 
 
 	 W a i t C o b o t R e a d y 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ m o v e _ t o _ Q R c o d e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t S t a r t E x e c u t i o n 
 
 	 P r i n t   " C O B _ m o v e _ t o _ Q R c o d e . s e q "   +   C R L F 
 
 	 ' 
 
 	 W a i t   S l o t T e x t ( S l o t Q R c o d e )   < >   " " 
 
 	 s 2   =   S l o t T e x t ( S l o t Q R c o d e ) 
 
 	 s 2   =   R e p l a c e ( s 2 ,   C R L F ,   " " ) 
 
 	 s 2   =   T r i m ( s 2 ) 
 
 	 S e l e c t   s 2 
 
 	 	 C a s e   " C o i n " 
 
 	 	 	 C o b o t L o a d S e q C o i n 
 
 	 	 C a s e   " B a l l " 
 
 	 	 	 C o b o t L o a d S e q B a l l 
 
 	 	 C a s e   " S t a r t   p u m p " 
 
 	 	 	 S t a r t P u m p 
 
 	 	 C a s e   " S t o p   p u m p " 
 
 	 	 	 S t o p P u m p 
 
 	 	 C a s e   " H o m e " 
 
 	 	 	 C o b o t G o t o H o m e 
 
 	 	 C a s e   " S h o w " 
 
 	 	 	 C o b o t S h o w P o i n t 
 
 	 	 C a s e   " R e d " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " E N D " 
 
 	 	 	 S a y E n d O f R o b o t A c t i o n s 
 
 	 	 	 C o b o t G o t o H o m e 
 
 	 	 	 E x i t F r o m S e q u e n c e L o o p   =   1 
 
 	 	 C a s e   " E n g l i s h   m a l e " 
 
 	 	 	 L a n g u a g e   =   1 
 
 	 	 	 T T S   S e l e c t V o i c e   1 
 
 	 	 	 S a y N o w T h e L a n g u a g e I s E n g l i s h M a l e 
 
 	 	 C a s e   " E n g l i s h   f e m a l e " 
 
 	 	 	 L a n g u a g e   =   2 
 
 	 	 	 T T S   S e l e c t V o i c e   2 
 
 	 	 	 S a y N o w T h e V o i c e I s E n g l i s h F e m a l e 
 
 	 	 C a s e   " I t a l i a n   f e m a l e " 
 
 	 	 	 L a n g u a g e   =   3 
 
 	 	 	 T T S   S e l e c t V o i c e   3 
 
 	 	 	 S a y N o w T h e L a n g u a g e I s I t a l i a n F e m a l e 
 
 	 	 C a s e   " C h i n e s e   f e m a l e " 
 
 	 	 	 L a n g u a g e   =   4 
 
 	 	 	 T T S   S e l e c t V o i c e   4 
 
 	 	 	 S a y N o w T h e L a n g u a g e I s C h i n e s e F e m a l e 
 
 	 	 C a s e E l s e 
 
 	 	 	 P r i n t   " I n v a l i d   Q R c o d e   "   +   s 2   +   C R L F 
 
 	 	 	 S t o p 
 
 	 E n d S e l e c t 
 
 	 P r i n t   " Q R c o d e = "   +   s 2   +   C R L F 
 
 	 W a i t C o b o t R e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t S h o w P o i n t 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ S h o w P o i n t . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " R u n _ S h o w P o i n t . s e q "   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t R e a d Q R c o d e 
 
 	 S a y R e a d Q R c o d e F u n c t i o n 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   R u n _ m o v e _ t o _ Q R c o d e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " R u n _ m o v e _ t o _ Q R c o d e . s e q "   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   M e a s u r e 
 
 	 L o a d   T h e r e m i n o _ M i c r o V i d e o . e x e 
 
 	 W a i t   A p p R u n n i n g ( " T h e r e m i n o _ M i c r o V i d e o . e x e " ) 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 ' C o b o t C o m m a n d   =   " L o a d S e q u e n c e   R u n _ M I T U T O Y O _ M 2 . s e q " 
 
 	 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   R u n _ M I T U T O Y O _ M 5 . s e q " 
 
 	 	 S e n d C o m m a n d T o C o b o t 
 
 	 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 	 S e n d C o m m a n d T o C o b o t 
 
 	 	 ' P r i n t   " R u n _ M I T U T O Y O _ M 2 . s e q "   +   C R L F 
 
 	 	 P r i n t   " R u n _ M I T U T O Y O _ M 5 . s e q "   +   C R L F 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %
 
 '   Q%    C   O   I   N                                                                       Q%  %        %    %  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %
 
 L a b e l   C o b o t L o a d S e q C o i n 
 
 	 S a y S t a r t C o i n R o u t i n e 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C o i n \ C O B _ P i c k C o i n . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P i c k _ c o i n . s e q "   +   C R L F 
 
 	 S t a r t P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C o i n \ C O B _ P l a c e C o i n . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P l a c e _ c o i n . s e q "   +   C R L F 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C o i n \ C O B _ R a i s e A f t e r P l a c e C o i n . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ R a i s e A f t e r P l a c e C o i n . s e q "   +   C R L F 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%    %%%%  %
 
 '   Q%    B   A   L   L                                                                       Q%  %%%%  %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%
 
 L a b e l   C o b o t L o a d S e q B a l l 
 
 	 S a y S t a r t B a l l R o u t i n e 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B a l l \ C O B _ P i c k B a l l _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P i c k B a l l _ A . s e q "   +   C R L F 
 
 	 S t a r t P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B a l l \ C O B _ P l a c e B a l l _ B . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P l a c e B a l l _ B . s e q "   +   C R L F 
 
 	 ' 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B a l l \ C O B _ P i c k B a l l _ B . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P i c k B a l l _ B . s e q "   +   C R L F 
 
 	 ' 
 
 	 S t a r t P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B a l l \ C O B _ P l a c e B a l l _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ P l a c e B a l l _ A . s e q "   +   C R L F 
 
 	 ' 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B a l l \ C O B _ R a i s e A f t e r P l a c e B a l l _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ R a i s e A f t e r P l a c e B a l l _ A . s e q "   +   C R L F 
 
 	 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%
 
 '   Q%    S P O K E N   M E S S A G E S                                                       Q%  %%%%  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %        %%%%
 
 V a r i a b l e   N u m e r i c   L a n g u a g e 
 
 L a b e l   S a y P o w e r S w I s O n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " P o w e r   s w i t c h   i s   o n ? " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " P o w e r   s w i t c h   i s   o n ? " 
 
 	 	 C a s e   3     	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " H a i   a c c e s o   l ' a l i m e n t a z i o n e ? " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " 5un _sQ/f&TSb _" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S t a r t a S e q u e n c e O f R o b o t A c t i o n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   r o b o t   a c t i o n   s e q u e n c e . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   r o b o t   a c t i o n   s e q u e n c e . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a t a   l a   s e q u e n z a   d i   a z i o n i   d e l   r o b o t . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " /TR:ghVNR\O^R0" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y S t a r t B a l l R o u t i n e 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   s e q u e n c e   o f   p i c k   a n d   p l a c e   o f   p i n g   p o n g   b a l l " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   s e q u e n c e   o f   p i c k   a n d   p l a c e   o f   p i n g   p o n g   b a l l " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a   l a   s e q u e n z a   d i   p r e l i e v o   e   p o s i z i o n a m e n t o   d e l l a   p a l l i n a   d a   p i n g   p o n g . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   "  _YRNSNtvS>ez^0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y S t a r t C o i n R o u t i n e 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " C o i n   s e q u e n c e   m a n a g e m e n t   h a s   b e e n   l a u n c h e d . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " C o i n   s e q u e n c e   m a n a g e m e n t   h a s   b e e n   l a u n c h e d . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a t a   l a   g e s t i o n e   d e l l a   s e q u e n z a   d e l l a   m o n e t a . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " lx^z^{t _Y0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R e a d Q R c o d e F u n c t i o n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a t i o n   o f   t h e   Q R   c o d e   a n d   s t a r t   o f   t h e   s e q u e n c e   o f   a c t i o n s   o f   t h e   r o b o t . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a t i o n   o f   t h e   Q R   c o d e   a n d   s t a r t   o f   t h e   s e q u e n c e   o f   a c t i o n s   o f   t h e   r o b o t . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a z i o n e   d e l   c o d i c e   Q R   e   a v v i o   d e l l a   s e q u e n z a   d i   a z i o n i   d e l   r o b o t . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " N~xv^ _Y:ghVNv N|RR\O0" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y E n d O f R o b o t A c t i o n s 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " T h e   a c t i o n   o f   t h e   r o b o t   i s   f i n i s h e d   a n d   i t   g o e s   t o   t h e   r e s t   p o s i t i o n . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " T h e   a c t i o n   o f   t h e   r o b o t   i s   f i n i s h e d   a n d   i t   g o e s   t o   t h e   r e s t   p o s i t i o n . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " L ' a z i o n e   d e l   r o b o t      t e r m i n a t a   e   s i   p o r t a   i n   p o s i z i o n e   d i   r i p o s o . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " :ghVNR\O[bۏeQYbkMOn0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s E n g l i s h M a l e 
 
 	 T T S   S p e a k   " N o w   t h e   l a n g u a g e   i s   E n g l i s h . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e V o i c e I s E n g l i s h F e m a l e 
 
 	 T T S   S p e a k   " N o w   t h e   v o i c e   i s   f e m a l e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s I t a l i a n F e m a l e 
 
 	 T T S   S p e a k   " O r a   p a r l a   I t a l i a n o . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s C h i n e s e F e m a l e 
 
 	 T T S   S p e a k   " s(W /f-Ne" 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y U n k n o w Q R c o d e 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " U n k n o w   Q R c o d e . " 
 
 R e t u r n 
 
 
 
 L a b e l   S a y V a c u u m P r o b l e m 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " V a c u u m   P r o b l e m . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y E n d O f P r o g r a m 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " T h e   p r o g r a m   i s   t e r m i n a t e d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E M E R G E N C Y                                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E m e r g e n c y 
 
 ' 	 D i s a b l e A l l B u t t o n s 
 
 ' 	 B u t t o n   1 5   E n a b l e d 
 
 ' 	 B u t t o n   1 5   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 L o a d   s o u n d \ A l a r m 1 0 b . w a v 
 
 ' 	 N e x t 
 
 	 S t o p 
 
 	 E m e r g e n c y 
 
 	 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  L E D   C O L O R S                                                                   Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   R e d O n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " S t a t u s   r e d . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " S t a t u s   y e l l o w . " 
 
 	 S l o t   S l o t _ L e d R   =   9 0 0 
 
 	 S l o t   S l o t _ L e d G   =   4 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " S t a t u s   g r e e n . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " S t a t u s   b l u e . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " S t a t u s   w h i t e . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 L a b e l   C h e c k M o t o r T e m p e r a t u r e 
 
 	 I f   D e b u g   =   0 
 
 	 	 V a r i a b l e   N u m e r i c   O l d T e m p e r a t u r e 
 
 	 	 T e s t M o t o r s T e m p e r a t u r e 
 
 	 	 I f   M o t o r s T e m p e r a t u r e   < >   O l d T e m p e r a t u r e 
 
 	 	 	 O l d T e m p e r a t u r e   =   M o t o r s T e m p e r a t u r e 
 
 	 	 	 B u t t o n   M o t o r T e m p   T e x t   " M o t o r T e m p :   "   +   F o r m a t ( M o t o r s T e m p e r a t u r e ,   " 0 " ) 
 
 	 	 	 I f   M o t o r s T e m p e r a t u r e   >   5 5 
 
 	 	 	 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 	 	 	 T e s t M o t o r s T e m p e r a t u r e 
 
 	 	 	 	 	 I f   M o t o r s T e m p e r a t u r e   < =   5 5 
 
 	 	 	 	 	 	 E x i t 
 
 	 	 	 	 	 E n d I f 
 
 	 	 	 	 	 L o a d   S o u n d \ A l a r m 1 4 . w a v 
 
 	 	 	 	 	 W a i t   N o t   M e d i a P l a y i n g 
 
 	 	 	 	 N e x t 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 I f   M o t o r s T e m p e r a t u r e   =   0 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 F o r   v 1   =   1   T o   5 
 
 	 	 	 	 P r i n t   "   R S 4 8 5   n o t   r e a d y "   +   C R L F 
 
 	 	 	 	 L o a d   S o u n d \ A l a r m 1 4 . w a v 
 
 	 	 	 	 W a i t   N o t   M e d i a P l a y i n g 
 
 	 	 	 N e x t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   N u m e r i c   M o t o r s T e m p e r a t u r e 
 
 L a b e l   T e s t M o t o r s T e m p e r a t u r e 
 
 	 M o t o r s T e m p e r a t u r e   =   S l o t ( 1 0 6 ) 
 
 	 M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 2 0 6 ) ) 
 
 	 M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 3 0 6 ) ) 
 
 	 M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 4 0 6 ) ) 
 
 	 M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 5 0 6 ) ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t M o t o r s R e a d y 
 
 	 S l o t ( 1 0 6 )   =   0 
 
 	 f o r 	 v 2   =   1   t o   I n f i n i t y 
 
 	 	 W a i t   S e c o n d s   0 . 2 
 
 	 	 I f   S l o t ( 1 0 6 )   =   0 
 
 	 	 	 P r i n t   " M o t o r   n o t   r e a d y   " 
 
 	 	 	 S a y P o w e r S w I s O n 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 W a i t   S e c o n d s   1 
 
 	 	 E l s e 
 
 	 	 	 E x i t   f o r 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%
 
 '   Q%  S E Q U E N C E S                                                                     Q%  %  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%
 
 L a b e l   I n i t S e q u e n c e P a t h s 
 
 	 V a r i a b l e   S t r i n g   E d i t o r F o l d e r 
 
 	 V a r i a b l e   S t r i n g   E d i t o r A p p 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e P a t h A n d N a m e 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e N a m e 
 
 	 ' 
 
 	 E d i t o r F o l d e r   =   " . \ A p p s \ T h e r e m i n o _ E d i t o r \ " 
 
 	 ' 
 
 	 E d i t o r A p p   =   E d i t o r F o l d e r   +   " T h e r e m i n o _ E d i t o r . e x e " 
 
 	 ' 
 
 	 S e q u e n c e P a t h A n d N a m e   =   E d i t o r F o l d e r   +   " S e q u e n c e s \ "   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 L a b e l   E d i t S e q u e n c e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 I f   F i l e E x i s t s ( S e q u e n c e P a t h A n d N a m e ) 
 
 	 	 L o a d   E d i t o r A p p   +   "   "   +   S e q u e n c e P a t h A n d N a m e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S e l e c t S e q u e n c e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 s 1   =   S e l e c t F i l e ( E d i t o r F o l d e r   +   " S e q u e n c e s \ " ) 
 
 	 I f   s 1   < >   " " 
 
 	 	 S e q u e n c e N a m e   =   s 1 
 
 	 	 S h o w S e q u e n c e N a m e 
 
 	 	 E d i t S e q u e n c e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w S e q u e n c e N a m e 
 
 	 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e q u e n c e "   +   C R L F   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  R U N   S E Q U E N C E S                                                             Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   R u n S e q u e n c e 
 
 	 C o b o t S t a r t E x e c u t i o n 
 
 	 ' G r e e n O n 
 
 	 S t a r t a S e q u e n c e O f R o b o t A c t i o n 
 
 	 S l o t T e x t   C o b o t R e s p o n s e   =   " R e a d y " 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   E d i t S e q u e n c e   E n a b l e d 
 
 	 B u t t o n   C l o s e A l l   E n a b l e d 
 
 	 ' B u t t o n   E m e r g e n c y   E n a b l e d 
 
 	 B u t t o n   M o t o r T e m p   E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   E x i t F r o m S e q u e n c e L o o p 
 
 	 ' 
 
 	 ' S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 ' 
 
 	 E x i t F r o m S e q u e n c e L o o p   =   0 
 
 	 S e q u e n c e T o E x e c u t e   =   S e q u e n c e P a t h A n d N a m e 
 
 	 F o r   N u m C y c l e   =   N u m C y c l e   T o   I n f i n i t y 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 	 R e s u l t   =   " " 
 
 	 	 E x e c S e q u e n c e 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 	 W a i t   S e c o n d s   0 . 2 
 
 	 	 I f   E x i t F r o m S e q u e n c e L o o p   >   0 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 E n a b l e A l l B u t t o n s 
 
 R e t u r n 
 
 
 
 '   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 '   %    S E Q U E N C E   L O A D I N G   A N D   E X E C U T I O N                           %
 
 '   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 V a r i a b l e   S t r i n g   S e q u e n c e T o E x e c u t e 
 
 V a r i a b l e   S t r i n g   S e q u e n c e 
 
 V a r i a b l e   S t r i n g   S e q u e n c e C m d 
 
 V a r i a b l e   N u m e r i c   S e q u e n c e I n d e x 
 
 V a r i a b l e   N u m e r i c   S e q u e n c e L e n g t h 
 
 
 
 
 
 L a b e l   E x e c S e q u e n c e 
 
 	 L o a d   S e q u e n c e   S e q u e n c e T o E x e c u t e 
 
 	 I f   L e n ( S e q u e n c e )   =   0 
 
 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 P r i n t   C R L F   +   "   S e q u e n c e   f i l e   n o t   f o u n d :   "   +   S e q u e n c e T o E x e c u t e     +   C R L F 
 
 	 	 B e e p 
 
 	 	 S t o p 
 
 	 E n d I f 
 
 	 ' 
 
 	 P r i n t   C R L F   +   " S e q u e n c e   "   +   G e t F i l e N a m e W i t h o u t P a t h ( S e q u e n c e T o E x e c u t e )     +   C R L F 
 
 	 P r i n t   "   s t a r t e d   a t   "   +   F o r m a t ( N o w ,   " H H : m m : s s " )   +   C R L F   +   C h a r s ( " - " ,   5 0 )   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 V a r i a b l e   N u m e r i c   E x e c S e q u e n c e S t a r t T i m e 
 
 	 E x e c S e q u e n c e S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e q u e n c e L e n g t h   =   G e t S e p a r a t e d S t r i n g C o u n t ( S e q u e n c e ,   C R L F ) 
 
 	 F o r   S e q u e n c e I n d e x   =   0   T o   S e q u e n c e L e n g t h   -   1 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 S e q u e n c e C m d   =   G e t S e p a r a t e d S t r i n g ( S e q u e n c e ,   S e q u e n c e I n d e x ,   C R L F ) 
 
 	 	 S e q u e n c e C m d   =   R e p l a c e ( S e q u e n c e C m d ,   C h r ( 9 ) ,   "   " )   ' T A B S   t o   S P A C E S 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 	 I f   G e t S e p a r a t e d S t r i n g C o u n t ( S e q u e n c e C m d ,   " ' ' " )   <   2 
 
 	 	 	 P r i n t   "   E x e c :   "   +   S e q u e n c e C m d   +   C R L F 
 
 	 	 E n d I f 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   T r i m   a n d   r e m o v e   c o m m e n t s 
 
 	 	 S e q u e n c e C m d   =   T r i m ( R e m o v e C o m m e n t s ( S e q u e n c e C m d ) ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 I f   S e q u e n c e C m d   < >   " " 
 
 	 	 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   0 ) 
 
                         	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n d   s e q u e n c e 
 
 	 	 	 	 C a s e   " R e s t a r t " 
 
 	 	 	 	 	 S e q u e n c e I n d e x   =   S e q u e n c e L e n g t h - 1 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S T O P 
 
 	 	 	 	 C a s e   " S t o p " 
 
 	 	 	 	 	 E x i t F r o m S e q u e n c e L o o p   =   1 
 
 	 	 	 	 	 E x i t 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   C O B O T   A C T I O N S 
 
 	 	 	 	 C a s e   " S h o w P o i n t " 
 
 	 	 	 	 	 C o b o t S h o w P o i n t 
 
 	 	 	 	 C a s e   " R e a d Q R C o d e " 
 
 	 	 	 	 	 R e a d Q R C o d e 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   C O L O R S 
 
 	 	 	 	 C a s e   " R e d O N " 
 
 	 	 	 	 	 R e d O n 
 
 	 	 	 	 C a s e   " M a g e n t a O N " 
 
 	 	 	 	 	 M a g e n t a O n 
 
 	 	 	 	 C a s e   " Y e l l o w O N " 
 
 	 	 	 	 	 Y e l l o w O n 
 
 	 	 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 	 	 G r e e n O n 
 
 	 	 	 	 C a s e   " B l u e O n " 
 
 	 	 	 	 	 B l u e O n 
 
 	 	 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 	 	 W h i t e O n 
 
 	 	 	 	 C a s e   " R g b O F F " 
 
 	 	 	 	 	 R g b O f f 
 
 	 	 	 	 C a s e   " S T A R T " 
 
 	 	 	 	 	 R u n S e q u e n c e 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   W i t h   p a r a m e t e r s 
 
 	 	 	 	 C a s e   " P a u s e " 
 
 	 	 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   1 ) 
 
 	 	 	 	 C a s e   " S i g n a l S c o p e " 
 
 	 	 	 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   1 ) 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   S e q u e n c e C m d   +   C R L F 
 
 	 	 	 	 	 B e e p 
 
 	 ' 	 	 	 	 S t o p 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 	 P r i n t   C h a r s ( " - " ,   5 0 )   +   C R L F   +   " S e q u e n c e   "   +   G e t F i l e N a m e W i t h o u t P a t h ( S e q u e n c e T o E x e c u t e ) 
 
 	 P r i n t   "   e x e c u t e d   i n   "   +   F o r m a t ( E l a p s e d T i m e   -   E x e c S e q u e n c e S t a r t T i m e ,   " 0 . 0 0 " )   +   "   s e c "   +   C R L F 
 
 R e t u r n 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     C O M M A N D S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   " L o a d S e q u e n c e   S e q N a m e . s e q "   ( w i t h o u t   s p a c e s ) 
 
 '   " S t a r t E x e c u t i o n " 
 
 '   " S t o p E x e c u t i o n " 
 
 '   " E n a b l e R e p e a t " 
 
 '   " D i s a b l e R e p e a t " 
 
 '   " G o t o H o m e " 
 
 '   " G o t o C e n t e r 
 
 '   " S e l e c t L i n e   n n n " 
 
 '   " E x e c u t e S e l e c t e d L i n e " 
 
 '   " E n a b l e C o l l a b o r a t i v e 
 
 '   " D i s a b l e C o l l a b o r a t i v e 
 
 '   " A d d N e w P o s i t i o n 
 
 '   " S e t H o m e P o s i t i o n 
 
 '   " S e t C e n t e r P o s i t i o n 
 
 '   " S e t H o l d i n g T o r q u e   n n n " 
 
 '   " S e t S a f e T o r q u e L i m i t   n n n " 
 
 '   " S e t T o r q u e   n n n " 
 
 '   " S e t A c c e l e r a t i o n   n n n " 
 
 '   " S e t S p e e d   n n n " 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     R E S P O N S E S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   " R e a d y " 
 
 '   " E x e c u t i o n   r u n n i n g   a t   l i n e   n n n " 
 
 '   " M o t o r s   d i s c o n n e c t e d " 
 
 '   " H u m a n   d e t e c t e d   -   S p e e d   r e d u c e d " 
 
 '   " H u m a n   t o o   n e a r   -   E x e c u t i o n   s t o p p e d " 
 
 '   " T o o   m u c h   t o r q u e   -   E x e c u t i o n   s t o p p e d " 
 
 '   " M o t o r s   d i s c o n n e c t e d   -   E x e c u t i o n   s t o p p e d " 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' I n d e x     N a m e                                                     C u l t u r e     G e n d e r       A g e 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 1             M i c r o s o f t   D a v i d   D e s k t o p               e n - U S         M a l e           A d u l t 
 
 ' 2             M i c r o s o f t   Z i r a   D e s k t o p                 e n - U S         F e m a l e       A d u l t 
 
 ' 3             M i c r o s o f t   E l s a   D e s k t o p                 i t - I T         F e m a l e       A d u l t 
 
 ' 4             M i c r o s o f t   H u i h u i   D e s k t o p             z h - C N         F e m a l e       A d u l t 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' ' 
 
 
 
 
 
 ' W A T C H   t t s v o i c e s 
 
 